Hi everybody. I have a script that runs during Windows 7 OSD that uses the takeown.exe and icacls.exe commands to take ownership and grant permissions to the C:\Windows folder (and subfolders). I have the commands output their results to a log file, and I can see that the permissions and ownership was successfully set on all the C:\Windows objects.
However, once the OSD process finishes, I check the ownership and NTFS permissions on C:\Windows, and I find the correct settings on the parent folder and all of the child objects EXCEPT the System32 folder. After OSD I can run the same commands again manually, and the permissions are set correctly and retained.
Is there something in the OSD process which would reset the System32 folder permissions?
Thank you in advance for any help.